package com.ruoyi.system.service;

import com.ruoyi.system.domain.Talk;
import com.ruoyi.system.domain.dto.TalkBackDTO;
import com.ruoyi.system.domain.dto.TalkDTO;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Service
public interface TalkService {

    //获取首页说说列表
    List<TalkDTO> getAllTalks(Long userid);

    TalkDTO getTalkById(@Param("userId")Long userId,@Param("talkId") Long talkId);

    List<TalkBackDTO> listBackTalks();

    TalkBackDTO getBackTalkById(Long userid, Long talkId);
    List<TalkDTO> getTalkByUserId(@Param("userId") Long userId);

    Integer getViewTotal();

    int saveTalk(Talk talk);

    int updateTalk(Talk talk);

    void deleteTalk(Long id);

    int saveTalkLike(Long userid,Long talkId);

}
